export default function () {
    return {
        name: "business_commission",
        actgetDefinitionsList:[],
        VFormRender: {
            visible: false,
            title: '发起审批',
            width: '600px',
            height: '700px',
            formJson: {},
            formData: {},
            optionData: {}
        },
        bpmnRow:null,
        // 筛选框配置
        search: {
            params: {},
            list: [
                {
                    type: "Input",
                    title: "流程名称",
                    field: "companyName"
                }
            ],
        },
        // 按钮组
        buttonGroup: [
            [
                {
                    name: 'create',
                    text: '审核',
                    btnType: 'primary',
                    loading: false,
                    icon: 'el-icon-document-add',
                    method: this.handleStoreDialog
                },
                {
                    name: 'del',
                    text: '反审核',
                    btnType: 'danger',
                    loading: false,
                    icon: 'el-icon-delete',
                    method: this.handleDelConfirm
                }
            ],
        ],
        // 表单配置
        config: {
            heightParams: [`_search`],
            height: 'auto',
            loading: false,
            tableData: {
                columns: [
                    {
                        field: "deploymentId",
                        title: "流程id",
                        width: 150,
                    },
                    {
                        field: "name",
                        title: "流程名称",
                        width: 150,
                    },
                    {
                        field: "userName",
                        title: "发起人",
                        width: 150,
                    }
                ],
                data: []
            }
        },
        // 弹窗
        storeDialog: {
            visible: false,
            title: '新增',
            rules: {},
            width: '1100px',
            height: '600px',
            formProp: [
                {
                    type: 'input',
                    label: '公司',
                    prop: 'companyName',
                    options: {
                        width: '150px'
                    }
                },
                {
                    type: 'input',
                    label: '备注',
                    prop: 'remark',
                    options: {
                        width: '150px'
                    }
                }
            ],
            formData: {}
        },
        // 筛选元素
        selectOptionsList: {
        },
    }
}
